package org.projetjava.metier.model;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.imageio.ImageIO;

public class Lieu {
	
	private String libelle;
	private String image;
	private String description;
	private int id;
	private List<HyperText> lienHyperText = new ArrayList<>();
	private List<String> lienImages = new ArrayList<>();
	private List<Poi> listPoi = new ArrayList<>();
	
	
	
	
	public String getDescription() {
		return description;
	}



	public void setDescription(String description) {
		this.description = description;
	}



	public List<HyperText> getLienHyperText() {
		return lienHyperText;
	}



	public void setLienHyperText(List<HyperText> lienHyperText) {
		this.lienHyperText = lienHyperText;
	}



	public List<String> getLienImages() {
		return lienImages;
	}



	public void setLienImages(List<String> lienImages) {
		this.lienImages = lienImages;
	}



	public List<Poi> getListPoi() {
		return listPoi;
	}



	public void setListPoi(List<Poi> listPoi) {
		this.listPoi = listPoi;
	}



	public Lieu()
	{
		
	}



	public String getLibelle() {
		return libelle;
	}



	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}



	public String getImage() {
		return image;
	}



	public void setImage(String image) {
		this.image = image;
	}
	
	public BufferedImage getBufferedImage()
	{
		BufferedImage image = null;
		try {
			image = ImageIO.read(new File(this.image));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return image;
	}



	public int getId() {
		return id;
	}



	public void setId(int id) {
		this.id = id;
	}





	
	

}
